.class public Lcom/brixd/niceapp/ui/AlertDialog;
.super Landroid/app/Dialog;
.source "AlertDialog.java"


# instance fields
.field private mBtnConfirm:Landroid/widget/Button;

.field private mMessage:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 18
    const v1, 0x7f0d001a

    invoke-direct {p0, p1, v1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V

    .line 19
    const v1, 0x7f03002f

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/ui/AlertDialog;->setContentView(I)V

    .line 21
    invoke-virtual {p0}, Lcom/brixd/niceapp/ui/AlertDialog;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    .line 22
    .local v0, "params":Landroid/view/WindowManager$LayoutParams;
    const/4 v1, -0x1

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 23
    const/4 v1, -0x2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 24
    const/high16 v1, 0x3f000000

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    .line 25
    iget v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    or-int/lit8 v1, v1, 0x2

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    .line 27
    const v1, 0x7f0a00d2

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/ui/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/brixd/niceapp/ui/AlertDialog;->mMessage:Landroid/widget/TextView;

    .line 28
    const v1, 0x7f0a00d3

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/ui/AlertDialog;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/brixd/niceapp/ui/AlertDialog;->mBtnConfirm:Landroid/widget/Button;

    .line 29
    iget-object v1, p0, Lcom/brixd/niceapp/ui/AlertDialog;->mBtnConfirm:Landroid/widget/Button;

    new-instance v2, Lcom/brixd/niceapp/ui/AlertDialog$1;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/ui/AlertDialog$1;-><init>(Lcom/brixd/niceapp/ui/AlertDialog;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 36
    return-void
.end method


# virtual methods
.method public setConfirmButtonText(I)V
    .registers 3
    .param p1, "resId"    # I

    .prologue
    .line 47
    invoke-virtual {p0}, Lcom/brixd/niceapp/ui/AlertDialog;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/ui/AlertDialog;->setConfirmButtonText(Ljava/lang/String;)V

    .line 48
    return-void
.end method

.method public setConfirmButtonText(Ljava/lang/String;)V
    .registers 3
    .param p1, "text"    # Ljava/lang/String;

    .prologue
    .line 51
    iget-object v0, p0, Lcom/brixd/niceapp/ui/AlertDialog;->mBtnConfirm:Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 52
    return-void
.end method

.method public setMessage(I)V
    .registers 3
    .param p1, "resId"    # I

    .prologue
    .line 39
    invoke-virtual {p0}, Lcom/brixd/niceapp/ui/AlertDialog;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/ui/AlertDialog;->setMessage(Ljava/lang/String;)V

    .line 40
    return-void
.end method

.method public setMessage(Ljava/lang/String;)V
    .registers 3
    .param p1, "text"    # Ljava/lang/String;

    .prologue
    .line 43
    iget-object v0, p0, Lcom/brixd/niceapp/ui/AlertDialog;->mMessage:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 44
    return-void
.end method
